﻿namespace FOCA.Migrations
{
    using System.Data.Entity.Migrations;

    public partial class MalwareAnalysis : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.Configurations", "DiarioAPIKey", c => c.String());
            AddColumn("dbo.Configurations", "DiarioAPISecret", c => c.String());
            RenameColumn("dbo.FilesItems", "Processed", "MetadataExtracted");
            AddColumn("dbo.FilesItems", "DiarioAnalyzed", c => c.Boolean(nullable: false));
            AddColumn("dbo.FilesItems", "DiarioPrediction", c => c.String());
            Sql("UPDATE dbo.Configurations SET DiarioAPIKey='LfUxRse6mjsRA3DZNBuq', DiarioAPISecret='ThyDYxcaGdHHK6TC3YcMqG2kFexF4D8djmdpcMy8'");
        }

        public override void Down()
        {
            RenameColumn("dbo.FilesItems", "MetadataExtracted", "Processed");
            DropColumn("dbo.FilesItems", "DiarioPrediction");
            DropColumn("dbo.FilesItems", "DiarioAnalyzed");
            DropColumn("dbo.Configurations", "DiarioAPISecret");
            DropColumn("dbo.Configurations", "DiarioAPIKey");
        }
    }
}
